let Koa=require("koa");
let router=require("koa-router")();
let static=require("koa-static");
let views=require("koa-views");
let nunjucks=require("nunjucks");
let app=new Koa();
app.use(static(__dirname+"/public/pc端"));
app.use(views(__dirname+"/public/pc端",{
    map:{html:"nunjucks"}
}))
app.listen(3000);
router.get("/",async ctx=>{
    await ctx.render("首页")
})
router.get("/video",async ctx=>{
    await ctx.render("视频")
})
app.use(router.routes())
